﻿// See https://aka.ms/new-console-template for more information
//using StudyDemo.GenericParadigm;

using Newtonsoft.Json;
using StudyDemo.GenericParadigm;
using StudyDemo.Delegate;
using System;
using static StudyDemo.Delegate.DelegateExample;
using StudyDemo;
using StudyDemo.Attributes;

Console.WriteLine("Hello, World!");

Student student = new Student();
var tablename = CustomeAttribute.GetTableName(student);
Console.WriteLine(tablename);
student.Id=Guid.NewGuid();
student.Name = "John";
student.Age = 25;
student.Sex = "Male";
student.Code="S001";

var result= CustomeAttribute.Validate(student);
Console.WriteLine(result);
Console.ReadKey();